function getTargetTabId(callback) {
  console.log("getTargetTabId");
  chrome.tabs.query({ currentWindow: true }, function (tabs) {
    console.log("getTargetTabId", tabs);
    for (var i = 0; i < tabs.length; i++) {
      console.log("tabs", i, tabs[i]);
      if (tabs[i].url && tabs[i].url.startsWith("https://xxx.com/")) {
        callback && callback(tabs[i]);
        return;
      }
    }
  });
}